package study.chapter03.stream;

import java.io.*;

public class TestOutStream {
    public static void main(String[] args) throws IOException {
        output();
    }

    public static void output() throws IOException {
        OutputStream os = null;
        try {
            String str = "Test OutputStream";
            byte[] content = str.getBytes();
            os = new FileOutputStream("F:/0temp/hello2.txt");
            os.write(content);
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            os.close();
        }

    }
}
